package com.ouyang.bo.api.controller;

import com.ouyang.bo.api.util.JSONResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试demo接口
 *
 * @param
 * @author duanpj
 * @date 2020/8/4
 */
@RestController
@RequestMapping("/api/demo")
public class ApiDemoController {

    /**
     * 测试接口
     * 测试地址：http://localhost:8080/api/demo/test
     *
     * @author duanpj
     * @param
     * @date 2020/8/4 0004
     */
    @GetMapping("/test")
    public JSONResult test() {

        return JSONResult.ok("测试接口成功");
    }
}
